import axios from "@/api/config"
import {baseURL} from "@/api/ipconfig"

var ip = baseURL.URL1

export const login = data => axios.post(ip+'/system/login', data)  //用户登陆接口

export async function outlogin() { //用户退出登陆
    const url = ip+'/system/logout' + "?refreshToken=" + localStorage.getItem("refreshToken");
    const res = await axios.post(url);
    return res.data;
}


